package it.tukano.treditor.engine.geom;

import java.io.Serializable;

/**
 * A 3d tuple. Immutable.
 * @author pgi
 */
public final class NTuple3 implements Serializable {
    
    /* default serial version uid*/
    private static final long serialVersionUID = 0;

    private final Number x, y, z;

    /**
     * Instance initializer
     */
    public NTuple3() {
        this(0,0,0);
    }

    /**
     * Initializes this point
     * @param x the x value
     * @param y the y value
     * @param z the z value
     */
    public NTuple3(Number x, Number y, Number z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    /**
     * Returns the x value
     * @return the x value
     */
    public Number getX() {
        return x;
    }

    /**
     * Returns the y value
     * @return the y value
     */
    public Number getY() {
        return y;
    }

    /**
     * Returns the z value
     * @return the z value
     */
    public Number getZ() {
        return z;
    }
}
